.w-image-wrap {
  position: relative;
  display: inline-flex;
  width: 4em;

  &--has-ratio {
    width: 100%;
  }

  img {
    width: 100%;
    height: auto;
    position: static;
  }
}

.w-image {
  background-image: url(""); // 1x1 blank gif.
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  &--contain {
    background-size: contain;
  }

  &__loader,
  &__content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
  }
}
